import { ValidateByOptions, ValidationOptions } from "class-validator";
import { ClassTransformOptions } from 'class-transformer';
import { Paramtype, SetMetadata } from "@nestjs/common";
import { DTO_VALIDATION_OPTIONS } from "./utils";



export const DtoValidation=(option?:ValidationOptions&{transformOption?:ClassTransformOptions}&{type?:Paramtype})=>{
    return SetMetadata(DTO_VALIDATION_OPTIONS ,option??{})
}


    